//引入sdk
const AlipaySdk = require("alipay-sdk").default;
const alipaySdk = new AlipaySdk({
  //AppId
  appId: "2021000122607308",
  //签名算法
  signType: "RSA2",
  //支付宝网关
  gateway: "https://openapi.alipaydev.com/gateway.do",
  //支付宝公钥
  alipayPublicKey:
    "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgsTPLCcCKdAbXDqcBr9aHylxmNYUjFqnVv4YAWUqpIfDpdQ4IiVsDW5bwAKmQCcRCY9o8RQmBFLEaX6HErxc5v95XzYxJWuSu2OP4FDqa9zgYR//lR3x70qpZ4KemoR0STwUTRGVvcMfzuUf1pO4SFBGjdLsTNxlX4cKKuVjGO/6zYB8DKwfnY6CS9B5X+A1pHX6MTkqbCquBmoreggdZ1SYK4GsPssgcZraCnWOnlEAFHcUBgHzAZRE07zWGe+t2mBZAeb4ZhWreTwdeo6ir/xu3SZLN703Y3YPvbv4ZeglVd5FrHUrRktICea+5jyeDAUjJU7iKPT5C3QCjeFJLwIDAQAB",
  //应用私钥
  privateKey:
    "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuBWuDM/JFQQ9toqNFWYynqkCBvd0THc1tNNgYG8T54ZtVckvmLXaT0EJG66HpsRtWsMndHs50pBsP4z1zic8qDpJ8/zSTSrWXsa3dBQ7ZynvxWlzR1QOqBhiL5Vo0bGeFnR/POyN5DTkRhY+d+D21DGiB7bgExoO8nN2pt4ewUXiKSuAxJmPAdPM/rA29xlctHW0RVMDR3ZPKNeXkHH2Jmw46V85AwcvtPq2VHL75oTZ0B6lXPvb/eUVSiZBeEkEySYOHZ5qci7g866weuIN0YvcyF4NjjGXi5dE94I5bac4JPVCEpoIz645R65TsoknH4Mm3uzA5/8j6rJ6whTSaQIDAQAB",
});

module.exports = alipaySdk;
